package com.zyh.alpacaDemo.account;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @Classname Account
 * @Description TODO()
 * @Date 2025-09-01 20:31
 * @Created by 86177
 */
// 忽略JSON中存在的但此类未定义的字段
@JsonIgnoreProperties(ignoreUnknown = true)
public class Account {
    @JsonProperty("id")
    private String id;

    @JsonProperty("account_number")
    private String accountNumber;

    @JsonProperty("status")
    private String status;

    @JsonProperty("currency")
    private String currency;

    @JsonProperty("buying_power")
    private String buyingPower;

    // 根据API文档添加其他字段
    @JsonProperty("cash")
    private String cash;

    @JsonProperty("created_at")
    private String createdAt;

    @JsonProperty("last_equity")
    private String lastEquity;

    @JsonProperty("kyc_results")
    private Object kycResults; // 可以是具体类型或Map

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getBuyingPower() {
        return buyingPower;
    }

    public void setBuyingPower(String buyingPower) {
        this.buyingPower = buyingPower;
    }

    public String getCash() {
        return cash;
    }

    public void setCash(String cash) {
        this.cash = cash;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getLastEquity() {
        return lastEquity;
    }

    public void setLastEquity(String lastEquity) {
        this.lastEquity = lastEquity;
    }

    public Object getKycResults() {
        return kycResults;
    }

    public void setKycResults(Object kycResults) {
        this.kycResults = kycResults;
    }
}